#include "ModbusTcpReq.h"

void SMdobusTcpReq::InitToZero()
{
    this->usEvent = 0;
    this->usProto = 0;
    this->usLen = 0;
    this->uaAddr = 0;
    this->uaFuncCode = 0;
    this->usRegAddr = 0;
    this->usRegNum = 0;
}

QString SMdobusTcpReq::GetRemark()
{
    return QString("事务标识:%1 协议标识:%2 长度:%3 地址:%4 功能码:%5 寄存器地址:%6 寄存器数量/设定值:%7")
        .arg(usEvent)
        .arg(usProto)
        .arg(usLen)
        .arg(uaAddr)
        .arg(uaFuncCode)
        .arg(usRegAddr)
        .arg(usRegNum);
}
